<%@ page import="com.EVO.entity.Test1" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Iterator" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  int num1 = 10;
  int num2 = 20;
  int num3 = num1+num2;
  int age = 20;

  Test1 test1 = new Test1(4444,"jojo");
  List list = new ArrayList();
  list.add(num1);
  list.add(num2);
  list.add(num3);
  list.add(age);
  list.add(test1.sid);
  list.add(test1.sname);
  Iterator it = list.iterator();
%>
变量num3：<%= num3%><br>
学员编号: <%= test1.sid%><br>
学员姓名：<%= test1.sname%><br>


<%
  if(age >= 18){
%>
  <font style="color: red;font-size: 40px">欢迎进入</font>
<%
  }else{
%>
<font style="color: red;font-size: 40px">谢绝入内</font>
<%
  }
%>
<br><br><br><br>



list集合中的元素：
<%
  while(it.hasNext()){
    Object o = it.next();
%>
<%="----"+o.toString()%>
<%
    }
%>




